package com.yuxin.common.util;

import com.fasterxml.uuid.Generators;
import com.fasterxml.uuid.impl.TimeBasedGenerator;

import java.util.UUID;

/**
 * @author zehui.zeng
 * @date 13-3-17 下午5:20
 */
public class UUIDUtil {
    static TimeBasedGenerator uuid_gen = Generators.timeBasedGenerator();
    /** 获取UUID **/
    public static String getUUID(){
     return uuid_gen.generate().toString();
    }
}
